package com.zxq.shiluwengan.controller;

import com.zxq.shiluwengan.frame.decoder._0BStopChargeResult;
import com.zxq.shiluwengan.frame.encoder._0BStopChargeCmd;
import com.zxq.shiluwengan.result.ResultVO;
import com.zxq.shiluwengan.service.impl.PlatformExchange;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _0BStopChargeController extends PlatformExchange<_0BStopChargeCmd, _0BStopChargeResult> {

    @Override
    public Integer getCmd() {
        return 0x0b;
    }

    @PostMapping(value = "exchange/0B")
    @Override
    public ResultVO<_0BStopChargeResult> exchange(@RequestBody _0BStopChargeCmd order) {
        return super.exchange(order);
    }

    @Override
    public _0BStopChargeResult getResult() {
        _0BStopChargeResult bStopChargeResult = new _0BStopChargeResult();
        return bStopChargeResult;
    }

}
